package com.sunsy.authserver.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sunsy.authserver.beans.dto.*;
import com.sunsy.authserver.beans.po.UniformUser;
import com.sunsy.authserver.beans.vo.AdminUserVO;
import com.sunsy.authserver.beans.vo.LoginVo;
import com.sunsy.authserver.beans.vo.UniformUserVO;

/**
 * (UniformUser)表服务接口
 *
 * @author makejava
 * @since 2021-07-20 14:40:38
 */
public interface UniformUserService extends IService<UniformUser> {

    LoginVo getUserToken(String code);

    UniformUser checkUser(LoginDto dto);

    UniformUserVO getUserInfo2(String userToken);

    boolean register(RegisterDto dto);

    IPage<AdminUserVO> getUserList(Page page, UserQueryDto dto);

    boolean adminUpdate(UniformUserDTO dto);

    Boolean insert(UniformUserDTO dto);

    boolean userUpdate(UpdateUserDto dto);

    boolean forgetPwd(ForgetPwdDto dto);

}